<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/07/07 18:07:59 $)
// $RCSfile: staff_reports.php,v $ : $Revision: 1.1 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

define("KBREPORT_VIEWS", "views");
define("KBREPORT_RATING", "rating");
define("KBREPORT_COMMENTS", "comments");

require_once ("./modules/knowledgebase/functions_knowledgebase.php");
require_once ("./modules/knowledgebase/functions_reports.php");
require_once ("./includes/functions_html.php");
require_once ("./includes/data_mimelist.php");
$template->loadLanguageSection("knowledgebase");

$interface->assignQuickLink($_SWIFT["language"]["rpopulararticles"], "index.php?_m=knowledgebase&_a=reports&type=populararticles", "icon_reports.gif");
$interface->assignQuickLink($_SWIFT["language"]["commentreport"], "index.php?_m=knowledgebase&_a=reports&type=comments", "icon_reports.gif");
$interface->assignQuickLink($_SWIFT["language"]["ratingreport"], "index.php?_m=knowledgebase&_a=reports&type=rating", "icon_reports.gif");


/**
* ###############################################
* POPULAR ARTICLES
* ###############################################
*/
if ($_REQUEST["type"] == "populararticles")
{
	require_once ("./modules/knowledgebase/report_populararticles.php");



/**
* ###############################################
* COMMENT REPORT
* ###############################################
*/
} else if ($_REQUEST["type"] == "comments") {
	require_once ("./modules/knowledgebase/report_comments.php");




/**
* ###############################################
* RATING REPORT
* ###############################################
*/
} else if ($_REQUEST["type"] == "rating") {
	require_once ("./modules/knowledgebase/report_rating.php");
	
}


?>